package com.alibaba.datax.plugin.reader.ossexcelreader;

import com.alibaba.datax.common.spi.ErrorCode;

/**
 * Created by lizhangxue on 24-7-04.
 */
public enum MinioErrorCode implements ErrorCode {
	MINIO_CONNECT_FAIL("Minio-01", "minio连接失败"),
	BUCKET_NO_EXIST("Minio-02", "bucket不存在"),
	BUCKET_QUERY_EXCEPTION("Minio-03", "查询bucket是否存在出现异常");

	private final String code;
	private final String description;

	MinioErrorCode(String code, String description) {
		this.code = code;
		this.description = description;
	}

	@Override
	public String getCode() {
		return this.code;
	}

	@Override
	public String getDescription() {
		return this.description;
	}

	@Override
	public String toString() {
		return String.format("Code:[%s], Description:[%s].", this.code,
				this.description);
	}
}
